package com.ymttest.common.enums;

/**
 * 业务类型
 */
public enum BusinessTypeEnum {

	/**
	 * 延长收货
	 */
	BuyerDelayReceive(13),

	/**
	 * 取消订单
	 */
	CancelOrder(1),
	/**
	 * 订单支付
	 */
	OrderPay(110),

	/**
	 * 确认收获
	 */
	ConfirmReceive(100),
	/**
	 * 提前x小时通知用户将要自动确认收货
	 */
	AutoConfirmReceiveAdvanceNotice(5),

	/**
	 * 确认接单
	 */
	AcceptOrder(6),

	/**
	 * 确认订单回调后推送
	 */
	AcceptOrderCallBack(11),

	/**
	 * 卖家发货
	 */
	SellerDispatched(10),
	/**
	 * 卖家退款
	 */
	//SellerRefund(20),

	/**
	 * 修改订单折扣
	 */
	ChangeOrderDiscount(9),

	/**
	 * 卖家延长收货
	 */
	SellerDelayReceive(13),

	/**
	 * 修改地址
	 */
	ChangeOrderAddress(15),

	/// 快速退款
	/// </summary>
	FastRefund(20),
	/// <summary>
	/// 退款完成
	/// </summary>
	RefundComplete(25),

	/// <summary>
	/// 订单未支付通知
	/// </summary>
	OrderNotPayNotify(27);

	private int intValue;
	private static java.util.HashMap<Integer, BusinessTypeEnum> mappings;

	private synchronized static java.util.HashMap<Integer, BusinessTypeEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, BusinessTypeEnum>();
		}
		return mappings;
	}

	private BusinessTypeEnum(int value) {
		intValue = value;
		BusinessTypeEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static BusinessTypeEnum forValue(int value) {
		return getMappings().get(value);
	}
}
